# !usr/bin/env python
# -*- coding:utf-8 -*-

'''
 Description  : 
 Version      : 1.0
 Author        : qww
 Date         : 2021-05-02 16:57:13
 LastEditors  : qww
 LastEditTime : 2021-05-02 19:32:00
'''

from typing import Dict, List, Tuple, Any, Union, Optional


class DBConfig:
    """
    数据库配置类
    """
    # ip地址
    host: str = '10.31.6.38'
    # host: str = '127.0.0.1'
    # 账户名
    user: str = 'root'
    # 密码
    password: str = 'root'
    # 数据库名
    database: str = 'test'

    # 端口号
    port: int = 3306


class ApplicationConfig:
    """
    应用配置类
    """
    host: str = '0.0.0.0'    # 应用ip地址
    port: int = 8002    # 应用端口号

    # identification 预测配置信息
    CLASS_NAMES = ['ants', 'bees']
    ALLOWED_EXTENSIONS: List = ['png', 'jpg', 'bmp', 'jpeg', 'tif']
